#include <iostream>
#include <vector>
#include <numeric>
using namespace std;

class Solution
{
public:
    int countGoodStrings(int low, int high, int zero, int one)
    {
        vector<long long> dp(high + 1);
        dp[0] = 1;
        for (int i = 1; i <= high; i++)
        {
            if (i >= zero && i >= one)
                dp[i] = (dp[i - zero] + dp[i - one]) % static_cast<long long>(1e9 + 7);
            else if (i >= zero && i < one)
                dp[i] = dp[i - zero];
            else if (i < zero && i >= one)
                dp[i] = dp[i - one];
            else
                dp[i] = 0;
        }
        long long sum = 0;
        for (int i = low; i <= high; i++)
        {
            sum += dp[i];
            sum = sum % static_cast<long long>(1e9 + 7);
        }
        return sum;
    }
};

int main()
{
    cout << "Code2466" << endl;
    Solution s;
    cout << s.countGoodStrings(3, 3, 1, 1) << endl;
    return 0;
}